package com.yuanjin.models;

import android.os.Parcel;
import android.os.Parcelable;

public class Map_MyLocation implements Parcelable {
	private String address;
	private String time;
	private double lon;
	private double lat;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public double getLon() {
		return lon;
	}

	public void setLon(double lon) {
		this.lon = lon;
	}

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(address);
		dest.writeString(time);
		dest.writeDouble(lon);
		dest.writeDouble(lat);
	}

	public static Parcelable.Creator<Map_MyLocation> CREATOR = new Creator<Map_MyLocation>() {

		@Override
		public Map_MyLocation[] newArray(int size) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public Map_MyLocation createFromParcel(Parcel source) {
			Map_MyLocation myLocation = new Map_MyLocation();
			myLocation.address = source.readString();
			myLocation.time = source.readString();
			myLocation.lon = source.readDouble();
			myLocation.lat = source.readDouble();
			return myLocation;
		}
	};

}
